package com.hairline.hairlinemarket.controller;

import com.hairline.hairlinemarket.bean.common.BaseRespVo;
import com.hairline.hairlinemarket.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.FutureTask;

/**
 * Author:杨小凯
 * Date:2023-04-19 18:25
 * Description:<描述>
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @Autowired
    private HomeService homeService;

    /*
    展示页面
     */
    @RequestMapping("/index")
    public BaseRespVo selectIndex(){
        Map<String, Object> entity = homeService.selectIndex();
        return BaseRespVo.ok(entity);
    }


    /*

     */
}
